﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Edit.Master" AutoEventWireup="true"
    CodeBehind="ArchiveBorrowApplyList.aspx.cs" Inherits="Web.Views.ArchiveBorrow.ArchiveBorrowApply.ArchiveBorrowApplyList" %>

<%@ Register TagName="ArchiveFilter" TagPrefix="u" Src="~/UserControls/ArchiveFilter.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="../../../Javascript/jquery-1.5.2.min.js" type="text/javascript"></script>
    <script src="../../../Easy_UI/jquery.easyui.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../../Javascript/UserControls.js"></script>
    <link href="../../../App_Themes/NewPage/Styles/kington.css" rel="Stylesheet" type="text/css" />
    <script type="text/javascript">
        function Selectfuzhi() {
            var objName = document.getElementById("ctl00_edit_cblUSERTYPE_2");
            if (objName.checked) {
                $('#ctl00_edit_trCopyPage').show();
            }
            else {
                $('#ctl00_edit_trCopyPage').hide();
            }
        }
    </script>
    <style type="text/css">
        body
        {
            overflow-y: auto;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="button" runat="server">
    <button type="button" class="sexybutton" runat="server" id="btnNewBorrow" onserverclick="btnNewBorrow_Click">
        <span><span><span class="edit">申请访问</span></span></span></button>
    <button type="button" class="sexybutton" runat="server" id="btnCreateBorrowSheet"
        onserverclick="btnCreateBorrowSheet_Click">
        <span><span><span class="edit">生成借阅单</span></span></span></button>
    <button type="button" class="sexybutton" runat="server" id="btnSearch" onserverclick="btnSearch_Click"
        visible="false">
        <span><span><span class="edit">查询</span></span></span></button>
    <button type="button" class="sexybutton" runat="server" id="btnReset" onserverclick="btnReset_Click"
        visible="false">
        <span><span><span class="edit">重置</span></span></span></button>
    <button type="button" class="sexybutton" runat="server" id="btnApplyNewRequest" onserverclick="btnApplyNewRequest_Click"
        visible="false">
        <span><span><span class="edit">提交申请</span></span></span></button>
    <button type="button" class="sexybutton" runat="server" id="btnGiveUp" onserverclick="btnGiveUp_Click"
        visible="false">
        <span><span><span class="edit">放弃申请</span></span></span></button>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="edit" runat="server">
    <div id="divSearch" border="false" runat="server" visible="true">
        <u:ArchiveFilter runat="server" ID="uArchiveFileter" />
        <ep:EPGridView runat="server" ID="gv_ArchiveList" DataKeyNames="DATAID" Width="100%"
            OnRowDataBound="gv_ArchiveList_OnRowDataBound" ShowCheckBox="true">
            <Columns>
                <asp:BoundField HeaderText="题名" DataField="TITLE" HeaderStyle-Width="20%" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="密级" DataField="F_SECURITYTYPE" HeaderStyle-Width="6%"
                    ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="保管期限" DataField="F_KEEPTIME" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="归档单位" DataField="FIleOrgID" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="文件日期" DataField="PublishTime" DataFormatString="{0:yyyy-MM-dd}"
                    HtmlEncode="false" HeaderStyle-Width="8%" ItemStyle-HorizontalAlign="Center" />
                <asp:BoundField HeaderText="载体类型" DataField="F_CarrierType" HeaderStyle-Width="6%"
                    ItemStyle-HorizontalAlign="Center" />
            </Columns>
        </ep:EPGridView>
        <ep:AspNetPager SubmitButtonText=" GO " ID="pagerdo" Height="26px" Width="100%" CssClass="yahoo2"
            runat="server" PageSize="10" layouttype="Table" ShowCustomInfoSection="Right"
            CustomInfoClass="custom" CustomInfoStyle=" clear:both;" ShowPageIndexBox="Always"
            submitbuttonimageurl="../Images/go.png" ShowPageIndex="true" PageIndexBoxType="TextBox"
            CustomInfoHTML="第 %CurrentPageIndex% 页，共 %PageCount% 页，每页显示 %PageSize% 条，共 %RecordCount% 条"
            OnPageChanging="aspNetPagerSearch_PageChanging" AlwaysShow="false">
        </ep:AspNetPager>
    </div>
    <div runat="server" id="divSelectData" visible="false">
        <fieldset style="height: 300px">
            <legend>申请详细</legend>
            <table cellpadding="0" cellspacing="0" width="100%" class="editTable">
                <tr>
                    <th style="width: 110px">
                        利用者:
                    </th>
                    <td>
                        <asp:TextBox runat="server" ID="txtBorrowUser" Enabled="false" Width="98%"></asp:TextBox>
                    </td>
                    <th style="width: 110px">
                        <span class="require_info">*</span>利用单位:
                    </th>
                    <td>
                        <asp:TextBox runat="server" ID="txtBorrowUserOrg" Width="98%" class="required"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <th>
                        <span class="require_info">*</span>证件名称及编号
                    </th>
                    <td>
                        <asp:TextBox runat="server" ID="txtIDCARD" Width="98%" class="required"></asp:TextBox>
                    </td>
                    <th>
                        <span class="require_info">*</span>联系电话:
                    </th>
                    <td>
                        <asp:TextBox runat="server" ID="txtTELNUM" Width="98%" class="required"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <th>
                        <span class="require_info">*</span>档案类型:
                    </th>
                    <td>
                        <asp:CheckBoxList runat="server" ID="cblARCHIVETYPE" RepeatDirection="Horizontal"
                            Width="99%" OnSelectedIndexChanged="cblARCHIVETYPE_SelectedIndexChanged" AutoPostBack="true">
                            <asp:ListItem Text="电子" Value="1"></asp:ListItem>
                            <asp:ListItem Text="纸质" Value="2"></asp:ListItem>
                            <asp:ListItem Text="特殊载体" Value="3"></asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                    <th>
                        <span class="require_info">*</span>利用方式:
                    </th>
                    <td>
                        <asp:CheckBoxList runat="server" ID="cblUSERTYPE" RepeatDirection="Horizontal" Width="99%">
                            <asp:ListItem Text="借阅" Value="1"></asp:ListItem>
                            <asp:ListItem Text="查阅" Value="2"></asp:ListItem>
                            <asp:ListItem Text="复制" Value="3"></asp:ListItem>
                        </asp:CheckBoxList>
                    </td>
                </tr>
                <tr id="trCopyPage" runat="server">
                    <th>
                        <span class="require_info">*</span>复制页数
                    </th>
                    <td colspan="3">
                        <asp:TextBox runat="server" ID="txtCopyPage" Width="80%"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <th>
                        <span class="require_info">*</span>借阅时间:
                    </th>
                    <td>
                        <asp:TextBox runat="server" ID="txtBorrowTime" Enabled="false" Width="160px"></asp:TextBox>
                    </td>
                    <th>
                        <span class="require_info">*</span>过期时间
                    </th>
                    <td>
                        <asp:TextBox runat="server" ID="txtValidPeriod" class="easyui-datebox " editable="false"
                            Width="180px"></asp:TextBox>
                    </td>
                </tr>
                <tr runat="server" id="trDown">
                    <th>
                    </th>
                    <td>
                        <asp:CheckBox runat="server" ID="cboCanDownload" Text="申请下载" />
                    </td>
                    <th>
                    </th>
                    <td>
                        <asp:CheckBox runat="server" ID="cboCanView" Text="申请浏览" />
                    </td>
                </tr>
                <tr>
                    <th>
                        <span class="require_info">*</span>借阅原因
                    </th>
                    <td colspan="3">
                        <asp:TextBox runat="server" ID="txtReason" Width="80%" Height="80px" TextMode="MultiLine"></asp:TextBox>
                    </td>
                </tr>
            </table>
        </fieldset>
        <fieldset style="margin-bottom: 20px;">
            <legend>所选数据</legend>
            <div style="overflow: hidden;">
                <ep:EPGridView runat="server" ID="gv_SelectArchiveDataList" DataKeyNames="DATAID"
                    Width="98%" OnRowDataBound="gv_SelectArchiveDataList_OnRowDataBound" ShowCheckBox="false"
                    AutoGenerateColumns="false" ShowFooter="true">
                    <Columns>
                        <asp:BoundField HeaderText="题名" DataField="TITLE" HeaderStyle-Width="18%" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="密级" DataField="F_SECURITYTYPE" HeaderStyle-Width="6%"
                            ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="保管期限" DataField="F_KEEPTIME" HeaderStyle-Width="6%" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="归档单位" DataField="FIleOrgID" HeaderStyle-Width="6%" ItemStyle-HorizontalAlign="Center" />
                        <asp:BoundField HeaderText="载体类型" DataField="F_CarrierType" HeaderStyle-Width="6%"
                            ItemStyle-HorizontalAlign="Center" />
                    </Columns>
                </ep:EPGridView>
            </div>
        </fieldset>
    </div>
</asp:Content>
